package cn.iocoder.yudao.module.ordering.controller.admin.record.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;

@Schema(description = "管理后台 - 餐品-订餐记录新增/修改 Request VO")
@Data
public class RecordSaveReqVO {

    @Schema(description = "编号", example = "30597")
    private Long id;

    @Schema(description = "餐品id", requiredMode = Schema.RequiredMode.REQUIRED, example = "31443")
    @NotNull(message = "餐品id不能为空")
    private Long foodId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "餐品类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "餐品类型不能为空")
    private String type;

    @Schema(description = "价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "11368")
    @NotNull(message = "价格不能为空")
    private BigDecimal price;

    @Schema(description = "图片")
    @NotEmpty(message = "图片不能为空")
    private String picture;

    @Schema(description = "状态，0已订餐，1已送餐，2已取餐，3用户取消，4系统取消",  example = "2")
    private Integer status;

    @Schema(description = "预定日期", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime orderDate;

    @Schema(description = "用户id", example = "15115")
    private Long userId;

    @Schema(description = "用户昵称", example = "赵六")
    private String userName;

    @Schema(description = "部门id",  example = "9128")
    private Long deptId;

    @Schema(description = "部门名称",  example = "王五")
    private String deptName;

    @Schema(description = "分类统计时的餐品数量")
    private Integer itemNum;

    @Schema(description = "分类统计时的餐品详情")
    private Map itemList;
}
